#ifndef BUFFER_H
#define BUFFER_H
#include <string.h>
#include "allerr.h"
#include "token.h"
char buffer[33];
int tot=0;
void clearBuff()
{
	memset(buffer,0x00,33);
	tot=0;
}
void pushBuff(char c)
{
	if(c==33)post_error(range,c,0);
	buffer[tot++]=c;
}
token check_keyword()
{
	int i;
	for(i=0;i!=MAXNOFTOKEN;i++)
		if(strcmp(buffer,typeTable[i])==0)
			return token(i);
	return VALUE;
}
#endif
